import React, { Component } from 'react'

export default class Child1 extends Component {
    constructor(props){
        super(props);
        this.state={}
    }
  render() {
    return (
      <div>子组件1收到父组件的值是{this.props.num}</div>
    )
  }
}
